Optimal. Leaf size=66 \[ -\frac {x (A+B x)}{b \sqrt {a+b x^2}}+\frac {2 B \sqrt {a+b x^2}}{b^2}+\frac {A \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{b^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {833, 655, 223,
212} \begin {gather*} \frac {A \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{b^{3/2}}-\frac {x (A+B x)}{b \sqrt {a+b x^2}}+\frac {2 B \sqrt {a+b x^2}}{b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 223
Rule 655
Rule 833
Rubi steps
\begin {align*} \int \frac {x^2 (A+B x)}{\left (a+b x^2\right )^{3/2}} \, dx &=-\frac {x (A+B x)}{b \sqrt {a+b x^2}}+\frac {\int \frac {a A+2 a B x}{\sqrt {a+b x^2}} \, dx}{a b}\\ &=-\frac {x (A+B x)}{b \sqrt {a+b x^2}}+\frac {2 B \sqrt {a+b x^2}}{b^2}+\frac {A \int \frac {1}{\sqrt {a+b x^2}} \, dx}{b}\\ &=-\frac {x (A+B x)}{b \sqrt {a+b x^2}}+\frac {2 B \sqrt {a+b x^2}}{b^2}+\frac {A \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {x}{\sqrt {a+b x^2}}\right )}{b}\\ &=-\frac {x (A+B x)}{b \sqrt {a+b x^2}}+\frac {2 B \sqrt {a+b x^2}}{b^2}+\frac {A \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{b^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.27, size = 61, normalized size = 0.92 \begin {gather*} \frac {2 a B-A b x+b B x^2}{b^2 \sqrt {a+b x^2}}-\frac {A \log \left (-\sqrt {b} x+\sqrt {a+b x^2}\right )}{b^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.13, size = 74, normalized size = 1.12
method | result | size |
risch | \(\frac {B \sqrt {b \,x^{2}+a}}{b^{2}}-\frac {A x}{b \sqrt {b \,x^{2}+a}}+\frac {A \ln \left (x \sqrt {b}+\sqrt {b \,x^{2}+a}\right )}{b^{\frac {3}{2}}}+\frac {a B}{b^{2} \sqrt {b \,x^{2}+a}}\) | \(68\) |
default | \(B \left (\frac {x^{2}}{b \sqrt {b \,x^{2}+a}}+\frac {2 a}{b^{2} \sqrt {b \,x^{2}+a}}\right )+A \left (-\frac {x}{b \sqrt {b \,x^{2}+a}}+\frac {\ln \left (x \sqrt {b}+\sqrt {b \,x^{2}+a}\right )}{b^{\frac {3}{2}}}\right )\) | \(74\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 64, normalized size = 0.97 \begin {gather*} \frac {B x^{2}}{\sqrt {b x^{2} + a} b} - \frac {A x}{\sqrt {b x^{2} + a} b} + \frac {A \operatorname {arsinh}\left (\frac {b x}{\sqrt {a b}}\right )}{b^{\frac {3}{2}}} + \frac {2 \, B a}{\sqrt {b x^{2} + a} b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.74, size = 164, normalized size = 2.48 \begin {gather*} \left [\frac {{\left (A b x^{2} + A a\right )} \sqrt {b} \log \left (-2 \, b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {b} x - a\right ) + 2 \, {\left (B b x^{2} - A b x + 2 \, B a\right )} \sqrt {b x^{2} + a}}{2 \, {\left (b^{3} x^{2} + a b^{2}\right )}}, -\frac {{\left (A b x^{2} + A a\right )} \sqrt {-b} \arctan \left (\frac {\sqrt {-b} x}{\sqrt {b x^{2} + a}}\right ) - {\left (B b x^{2} - A b x + 2 \, B a\right )} \sqrt {b x^{2} + a}}{b^{3} x^{2} + a b^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 3.57, size = 83, normalized size = 1.26 \begin {gather*} A \left (\frac {\operatorname {asinh}{\left (\frac {\sqrt {b} x}{\sqrt {a}} \right )}}{b^{\frac {3}{2}}} - \frac {x}{\sqrt {a} b \sqrt {1 + \frac {b x^{2}}{a}}}\right ) + B \left (\begin {cases} \frac {2 a}{b^{2} \sqrt {a + b x^{2}}} + \frac {x^{2}}{b \sqrt {a + b x^{2}}} & \text {for}\: b \neq 0 \\\frac {x^{4}}{4 a^{\frac {3}{2}}} & \text {otherwise} \end {cases}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.18, size = 58, normalized size = 0.88 \begin {gather*} \frac {{\left (\frac {B x}{b} - \frac {A}{b}\right )} x + \frac {2 \, B a}{b^{2}}}{\sqrt {b x^{2} + a}} - \frac {A \log \left ({\left | -\sqrt {b} x + \sqrt {b x^{2} + a} \right |}\right )}{b^{\frac {3}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.34, size = 61, normalized size = 0.92 \begin {gather*} \frac {A\,\ln \left (\sqrt {b}\,x+\sqrt {b\,x^2+a}\right )}{b^{3/2}}-\frac {A\,x}{b\,\sqrt {b\,x^2+a}}+\frac {B\,\left (b\,x^2+2\,a\right )}{b^2\,\sqrt {b\,x^2+a}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________